﻿namespace BarrageGameAssistant.Core.Enums
{
    /// <summary>
    /// 游戏过程定义
    /// </summary>
    public enum GameSceneType
    {
        /// <summary>
        /// 基础场景
        /// </summary>
        Base,
        /// <summary>
        /// 准备开始
        /// </summary>
        Ready,
        /// <summary>
        /// 游戏进行中
        /// </summary>
        Playing,
        /// <summary>
        /// 游戏结束
        /// </summary>
        GameOver
    }

    public static class GameSceneTypeExtension
    {
        public static string ToDesc(this GameSceneType gameSceneType)
        {
            if (gameSceneType == GameSceneType.Ready)
                return "准备开始";
            else if (gameSceneType == GameSceneType.Playing)
                return "游戏进行中";
            else if (gameSceneType == GameSceneType.GameOver)
                return "游戏结束";
            else
                return "基础场景";
        }
    }
}
